package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface OrderDetailMapper {

    void insert(ArrayList<OrderDetail> orderDetail);
    @Select("select * from sky_take_out.order_detail where order_id=#{currentId}")
    List<OrderDetail> pageQueryById(Long currentId);

    /**
     * 查询订单详细信息
     * @param id
     * @return
     */
    @Select("select * from sky_take_out.order_detail where order_id=#{id}")
    List<OrderDetail> queryById(Long id);
}
